﻿namespace System.Data.Entity.Infrastructure.Annotations
{
    using System.ComponentModel.DataAnnotations.Schema;

    /// <summary>
    /// Instances of this class are used as custom annotations for representing database full-text indexed tables in an
    /// Entity Framework model.
    /// </summary>
    public class FullTextIndexedTableAnnotation
    {
        /// <summary>
        /// The name used when this annotation is stored in Entity Framework metadata or serialized into
        /// an SSDL/EDMX file.
        /// </summary>
        public const string AnnotationName = "FullTextIndexedTableAnnotation";

        private readonly FullTextIndexedTableAttribute _fullTextIndexedTable;

        public FullTextIndexedTableAnnotation(FullTextIndexedTableAttribute attribute)
        {
            this._fullTextIndexedTable = attribute;
        }

        public FullTextIndexedTableAttribute FullTextIndexedTable
        {
            get { return _fullTextIndexedTable; }
        }

    }
}
